/**
 * Copyright:Copyright(c)2014-2017
 * Company:厦门市易致达物联网科技有限公司
 * @version 1.0
 */
package shop.controller.manage.organizeComment;
import shop.core.common.bean.JSONResult;
import shop.core.util.KeyValueHelper;
import shop.core.Services;
import shop.core.util.MD5;
import shop.services.manage.organizeComment.OrganizeCommentService;
import shop.services.manage.organizeComment.bean.OrganizeComment;
import shop.core.BaseController;
import shop.core.RequestHolder;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;

/**   
 * @类名称：OrganizeCommentAction      
 * @创建人：Ltz   
 * @创建时间：2017-08-07 下午14:59:52      
 * @版本号：1.0
 * @描述：     
 */
@Controller
@RequestMapping("/manage/organizeComment/")
public class OrganizeCommentAction extends BaseController<OrganizeComment> {
    private static final Logger logger = LoggerFactory.getLogger(OrganizeCommentAction.class);
    @Autowired
    private OrganizeCommentService organizeCommentService;
    private static final String page_toList = "/manage/organizeComment/organizeCommentList";
    public OrganizeCommentService getService() {
        return organizeCommentService;
    }

    private OrganizeCommentAction(){
        super.page_toList = page_toList;
        super.page_toAdd = null;
        super.page_toEdit = null;
    }


    /**
     * 查询机构星级
     * @param organizeComment
     * @return
     */
    @RequestMapping(value = "selectOrganizeComment", method = RequestMethod.GET)
    @ResponseBody
    public JSONResult selectOrganizeComment(@ModelAttribute("organizeComment") OrganizeComment organizeComment) {
        organizeComment =  organizeCommentService.selectOrganizeComment(organizeComment);
        jsonResult = new JSONResult();
        jsonResult.setData(organizeComment);
        return jsonResult;
    }
}
